package com.acme.exceptions;

import com.acme.domain.account.Account;

public class OverDraftLimitExceedException extends NotEnoughFundsException{

	private static final long serialVersionUID = 1L;
	private Account account;
	private double maxAmount;
	public OverDraftLimitExceedException(final Account account) {
		super();
		this.account = account;
		maxAmount = account.maximumAmountToWithdraw();
	}
	public Account getAccount() {
		return account;
	}
	public double getMaxAmount() {
		return maxAmount;
	}
	
}
